import turtle as t
t.pensize(5)
t.speed(0.1)
n=5
x1=0
y=0
for i in range(n):
    for j in range(n):
        t.penup()
        t.goto(x1,y)
        t.pendown()
        t.circle(50)
        x1=x1+100
    x1=0+50*(i+1)
    t.penup()
    t.goto(x1,y)
    t.pendown()
    n=n-1
    y=y-100
    
